home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / Think C dcmd 1.0.1 ƒ / Think Put Lib source / PutUHexWord.c < prev   
Encoding:
Text File  |  1994-06-12  |  236 b   |  12 lines  |  [TEXT/KAHL]

  1. void PutText(const char* s, int len );
  2. void __HexToText (unsigned long hex, char* str, short size  /* 0=word, 1=long */ );
  3.  
  4.  
  5. void PutUHexWord(unsigned short h)
  6. {
  7.         char*     str = "0000";
  8.     
  9.     __HexToText (h, str, 0 );
  10.  
  11.     PutText( str, 4 );
  12. }